package com.shangguan.spring.mvc.web.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @ClassName: MyController
 * @Description:
 * @Author: 一尘
 * @Date: 2020 年 04 月 16 21:40
 * @Version 1.0
 */
@Controller
public class MyController {
    
    @GetMapping("/hello")
    public  String hello(Model model){
        System.out.println("-----------------------model----------------");
        model.addAttribute("hello","Hello Spring thymeleaf test !!!!!");
        return  "list";
    }
}
